Skip to content

chore: retire harness apparatus, promote knowledge base - #9

Merged
anarkh merged 2 commits into
mainfrom
chore/retire-harness-knowledge-base
Jul 29, 2026
Merged

chore: retire harness apparatus, promote knowledge base#9
anarkh merged 2 commits into
mainfrom
chore/retire-harness-knowledge-base

Conversation

@anarkh

@anarkh anarkh commented Jul 29, 2026

Copy link
Copy Markdown
Owner

背景

本项目不再需要 AI/开发协作台账(模型与 agent 已能独立工作)。本次将 harness/ 中仍然有效的项目知识提炼为一等公民的 knowledge/ 知识库,其余台账全部删除,并把 npm run check 重建为对产品代码的真实校验。

改动

  • 新增 knowledge/(14 篇):产品定位、用户旅程、架构、数据模型、信任安全、隐私安全、分享归因、设计 UI、开发验证、部署运维、上线就绪 + 索引与维护指南。
  • 补齐 2 处历史缺口:微信朋友圈单页平台约束(基础库 2.11.3 降级、双分享回调、scene 1154 单页只读、imageUrl 隐私规避)与归因 user_id_hash(不可逆哈希,仅粗粒度去重,禁止写入原始身份)。
  • 删除 harness/(约 135 个文件) 及 24 个仅服务台账的证据生成/校验脚本(已是死代码)。
  • 重建 npm run check 为三段真实检查:JSON 语法 → 知识库结构 → 25 个产品行为门禁。新增 scripts/check-readiness.mjs 取代已删除的 devtools-readiness 运行器;check-content-safety 等脚本从 harness 依赖切换到直接校验产品代码。
  • 引用对齐:AGENTS.mdPROJECT_SUMMARY.mdLAUNCH_TODO.mdproject.config.json 改为指向 knowledge/npm run check
  • .gitignore:移除失效的 harness/* 忽略规则,新增忽略 mcp-gateway/ 工具产物。

净变化:+3288 / −23991 行。

验证

  • npm run check 通过:13 个 JSON、14 篇文章、25 个产品检查。
  • git diff --check 干净(已清理 EOF 空行)。
  • 回归测试:知识检查器仍能捕获真实断链,同时不再对内联代码示例误报。
  • 提交前密钥扫描仅命中字段名/设计 token/脱敏逻辑等误报,无真实密钥;aaaproject.private.config.json 确认被忽略,未进入提交。

🤖 Generated with Claude Code

anarkh and others added 2 commits July 20, 2026 10:44
…from package

Moved raw map posts from Page.data to controller-only this.posts, removed
unrendered NearbyPreview/open-count work, and skipped no-selection region-end
rebuilds. A 100-post synthetic benchmark reduced average refresh setData
payload from 183,539 to 119,848 bytes (-34.7%).

project.config.json now excludes .gstack/ and style-comparison.html from the
mini program package, avoiding 106,313 B (18.1%) of local non-app input.
style-comparison.html is added to .gitignore as a local tool artifact.

Static checks and readiness all pass; DevTools/real-device performance
remains unverified (service port 9420 blocked).
This project no longer needs the AI/dev-collaboration harness. Migrate the
durable product knowledge it held into a first-class knowledge/ base and
delete the rest.

- Add knowledge/ (14 articles): product, journeys, architecture, data model,
  trust/safety, privacy/security, sharing/attribution, design, verification,
  deployment, release readiness, plus an index and maintenance guide.
- Fill two gaps from the old harness: WeChat timeline single-page platform
  constraints and the attribution user_id_hash (irreversible, dedup-only).
- Delete harness/ (~135 files) and 24 harness-only evidence scripts that are
  now dead code.
- Rebuild `npm run check` into three real stages: JSON syntax, knowledge-base
  structure, and 25 product-behavior checks (new scripts/check-readiness.mjs
  replaces the deleted devtools-readiness runner). Repoint check-content-safety
  and related scripts off harness onto the product code they verify.
- Reconcile AGENTS.md, PROJECT_SUMMARY.md, LAUNCH_TODO.md, and
  project.config.json to reference knowledge/ and `npm run check`.
- Refresh .gitignore: drop stale harness ignores, ignore the mcp-gateway/
  tool artifact.

Verified: `npm run check` passes (13 JSON files, 14 articles, 25 product
checks) and `git diff --check` is clean.

Co-Authored-By: Claude <noreply@anthropic.com>
@anarkh
anarkh merged commit fcac4db into main Jul 29, 2026
2 checks passed
@anarkh
anarkh deleted the chore/retire-harness-knowledge-base branch July 29, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant